#include "StdAfx.h"
#include "Node.h"
#include "Product.h"
#include <iostream>
using namespace std;

//constructor(void).
Node::Node(void)
{
		cout<<name<<" was created."<<endl;
}

//destructor.
Node::~Node(void)
{
		cout<<name<<" was destroy"<<endl;
}

//constructor with param-s.
Node::Node(char* name,int count):Product(name,count)
{
	cout<<name<<" with param-s was created"<<endl;
}

//print 2 values char* , int.
 void Node::print()
{
	cout<<"name = "<<name<<" count = "<<count<<endl;
}


